filenames = ['cats.txt','dogs.txt']
for filename in filenames:
    with open(filename,'w') as f:
        f.write(f'{filename}->one\n')
        f.write(f'{filename}->two\n')
        f.write(f'{filename}->three\n')

for filename1 in filenames:
    try:
        with open(filename1) as f:
            massege = f.read()
    except FileNotFoundError:
        print("Not found.......")
    else:
        print(massege)

